﻿using DevExpress.Mvvm.Gantt;
using System.Runtime.Serialization;

namespace DevWpfApp
{
    [DataContract]
    public class GanttResourceProxy
    {
        public GanttResourceProxy()
        {
        }
        private GanttResource _resource;
        public GanttResource GanttResource
        {
            get
            {
                if (_resource == null)
                {
                    _resource = new GanttResource();
                }
                return _resource;
            }
            set
            {
                _resource = value;
            }
        }

        [DataMember]
        public string Name
        {
            get { return this.GanttResource.Name; }
            set { this.GanttResource.Name = value; }
        }


        [DataMember]
        public object Id
        {
            get
            {
                return this.GanttResource.Id;
            }
            set { this.GanttResource.Id = value; }
        }
    }
}
